package pattern.proxy.static_proxy;

/**
 * describe:
 * author:gss
 *
 * @note：
 * @knowledge: create_time:2016/2/17 21:03
 */
public class Car2 implements Moveable {
    private Car car;

    public Car2(Car car) {
        super();
        this.car = car;
    }

    public void move() {
        long startTime=System.currentTimeMillis();
        System.out.println("汽车运动开始。。。");
        car.move();
        long endTime=System.currentTimeMillis();
        System.out.println("汽车结束。。。");
        System.out.println("汽车行驶时间："+(endTime-startTime)+"毫秒");
    }
}
